<?php
include_once "../config.php";

$username = $_POST['username'];
$password = $_POST['password'];

$sql = "
select *
from admin
where username='$username' and
password='$password'";

$result = $conn -> query($sql);

if ($result->num_rows > 0) {
    header("location:index.html");    
}  else {
    header("location:login.html");
}
?>
